<!-- right-->
<div class="MemberMain">
  <div>
    <div class="title"><{t}>兑换优惠券<{/t}></div>
    <div class="admin_title" style="padding-left:11px"><{t}>您当前的有效积分：<{/t}><span style="font-size:20px; margin:0 3px; font-weight:bold; color:#fd6b00; "><{$member.point}></span>分</div>
    <{if !$couponList}>
    <div class="noinfo"><{t}>尚无可兑换的优惠券<{/t}></div>
    <{else}>
    <div class="title-bg">
      <div><{t}>可兑换的优惠券<{/t}></div>
    </div>
    <table width="100%" cellpadding="0" cellspacing="0" class="gridlist">
      <col class=" textleft">
      </col>
      
      <col class="span-6 ">
      </col>
      
      <col class="span-2">
      </col>
      
      <col class="span-2">
      </col>
      
      <thead>
        <tr>
          <th align="center"><{t}>名称<{/t}></th>
          <th><{t}>有效期<{/t}></th>
          <!--    <th><{t}>截止时间<{/t}></th>
-->
          <th><{t}>所需积分<{/t}></th>
          <th><{t}>操作<{/t}></th>
        </tr>
      </thead>
      <tbody>
      <{foreach from=$couponList item=item key=key}>
      <tr>
        <td><{$item.cpns_name}></td>
        <td><{$item.time.from_time|cdate:SDATE_STIME}> ~ <{$item.time.to_time|cdate:SDATE_STIME}></td>
        <!--<td><{$item.time.to_time|cdate:SDATE_STIME}></td> 
-->
        <td align="center"><{$item.cpns_point}></td>
        <td align="center"><{if $item.cpns_status}><a href="<{link app=b2c ctl=site_member act=exchange arg0=$item.cpns_id}>" ><{t}>兑换<{/t}><{else}><{t}> 当前等级或积分不够不能兑换<{/t}><{/if}></a></td>
      </tr>
      <{/foreach}>
      </tbody>
      
    </table>
    <{pager data=$pager}> 
    <{/if}>
    </div>
</div>

<!-- right-->
